package com.wuxinwudai.android.util;

import java.util.List;

public class ListUtils {
	/**
	 * 获取列表的长度
	 * @param sourceList 
	 * @return
	 */
	public static <V> int getSize(List<V> sourceList) {
        return sourceList == null ? 0 : sourceList.size();
    }
	/**
	 * 判断列表是否为 null 或长度为 0
	 * @param sourceList
	 * @return
	 */
	public static <V> boolean isEmpty(List<V> sourceList) {
        return (sourceList == null || sourceList.size() == 0);
    }
}
